package game;
import java.util.Scanner;

import node.*;

public class GamePlayer implements Node {
	
	private int size;
	
	public GamePlayer(int boardSize) {
		size = boardSize;
	}

	public Node copyNode() {
		return null;
	}
	
	public void display(int i) {
		return;
	}
	
	public int evaluate(int[] board) {
		int mer = board[0];
		int mec = board[1];
		
		int otherr = board[2];
		int otherc = board[3];
		
		for(int i = 0; i < size; i++) {
			for(int j = 0; j < size; j++) {
				if(i == mer && j == mec)
					System.out.print("X");
				else if(i == otherr && j == otherc)
					System.out.print("O");
				else
					System.out.print(".");
			}
			System.out.println();
		}
		
		System.out.println();
		System.out.println(" 0 ");
		System.out.println("2 3");
		System.out.println(" 1 ");
		System.out.print("Enter move: ");
		
		Scanner scan = new Scanner(System.in);
		int move = scan.nextInt();
		return move;
	}
}
